import request from '@/utils/request'

// 查询温度矫正系数列表
export function listCorrect(query) {
  return request({
    url: '/baseinfo/correct/list',
    method: 'get',
    params: query
  })
}

// 查询温度矫正系数详细
export function getCorrect(id) {
  return request({
    url: '/baseinfo/correct/' + id,
    method: 'get'
  })
}
export function getTempCorrectByCode(code) {
  return request({
    url: '/baseinfo/correct/getTempCorrectByCode/' + code,
    method: 'get'
  })
}

// 新增温度矫正系数
export function addCorrect(data) {
  return request({
    url: '/baseinfo/correct',
    method: 'post',
    data: data
  })
}

// 修改温度矫正系数
export function updateCorrect(data) {
  return request({
    url: '/baseinfo/correct',
    method: 'put',
    data: data
  })
}
export function updateEquipmentCorrect(data) {
  return request({
    url: '/baseinfo/correct',
    method: 'put',
    data: data
  })
}

// 删除温度矫正系数
export function delCorrect(id) {
  return request({
    url: '/baseinfo/correct/' + id,
    method: 'delete'
  })
}
